extends "../calxmx_1_1/calxmx_1_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "终结兔"                   # 角色的名称
	atkEff = "atk_dang" 
	xb = "木"
	lv = 4    
	addSkillTxt("[color=#FFFF00][终结狂风][/color][color=#FFCC22]狂风般轰炸敌方单体，造成240%木系魔法伤害，并使目标<中毒>4秒\n恢复造成伤害的30%体力值，如果目标体力值低于50%，则伤害翻倍[CD:15][/color]")
	addCdSkill("zjkf",15)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "zjkf":
		var dmg1 = att.mgiAtk*2.4
		var txt = "终结狂风"
		if aiCha.att.hp < aiCha.att.maxHp * 0.5:
			dmg1 *= 2
			txt = "斩·" + txt
		var eff1 = sys.newEff("numHit", position, false, 1)
		eff1.setText(txt, "#FF0099")
		eff1.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,dmg1,Chara.HurtType.MGI,Chara.AtkType.SKILL)
		aiCha.addBuff(bf.zhongdu.new(4))